package router

import (
	handler "demo/handlers"

	"github.com/gin-gonic/gin"
)

// InitRouter _
func InitRouter() *gin.Engine {
	router := gin.Default()
	router.GET("/", handler.Index)
	router.GET("/download", gin.WrapF(handler.Download))
	router.GET("/json", handler.Res)
	router.GET("/add", handler.Add)
	router.GET("/update", handler.Update)
	return router
}
